<template>
  <div class="center">
    <div style="background: url(/imgs_lx/1547817657.jpg) no-repeat center;
    background-size: cover;width: 100%;
    height: 588px;"></div>
    <div id="app">
      <div class="common-layout">
        <div class="title">宠物课堂</div>
        <el-container>
          <el-aside style="float: left;width: 170px;height: auto;overflow: hidden;">
            <div class="title_left">宠物课堂
            </div>
            <div>
              <a href="javascript:void(0)"  class="nav_a">
                <div class="left_nav">
                  新手专题
                </div>
              </a>
              <hr>
              <a href="javascript:void(0)"  class="nav_a">
                <div class="left_nav">
                  宠物美容
                </div>
              </a>
              <hr>
              <a href="javascript:void(0)" class="nav_a">
                <div class="left_nav">
                  宠物护养
                </div>
              </a>
              <hr>
              <a href="javascript:void(0)" class="nav_a">
                <div class="left_nav">
                  宠物训练
                </div>
              </a>
              <hr>
              <a href="javascript:void(0)" class="nav_a">
                <div class="left_nav">
                  疾病预防
                </div>
              </a>
              <hr>
              <a href="javascript:void(0)" class="nav_a">
                <div class="left_nav">
                  视频展示
                </div>
              </a>
              <hr>
            </div>
          </el-aside>
          <el-container>
            <el-header>
              <div id="small_nav">
                <el-breadcrumb id="header" separator-class="el-icon-arrow-right">
                  <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
                  <el-breadcrumb-item :to="{ path: '/petclass' }">宠物课堂</el-breadcrumb-item>
                  <el-breadcrumb-item :to="{ javascript:void(0) }">新手专题</el-breadcrumb-item>
                </el-breadcrumb>
              </div>
            </el-header>
            <div style="width: 1000px;height: auto;overflow: hidden;margin-left: 25px">
              <el-row :gutter="15">
                <el-col :span="8" v-for="a in animalArr">
                  <el-card :body-style="{ padding: '0px',position:'relative' }">
                    <a href="javascript:void(0)">
                      <div class="school_img" transition-duration="1.3s">
                        <img :src='a.url' style="width:327px; height:247px;"/>
                      </div>
                      <div class="school_ti">
                        <div class="school_2" >
                          {{a.title}}&nbsp</div>
                        <div class="school_3">
                          {{a.content}}
                        </div>
                        <div class="school_4">
                          {{a.more}}
                        </div>
                      </div>
                    </a>
                  </el-card>
                </el-col>
              </el-row>
              <div class="school_more" style="margin-top: 20px;margin-bottom: 30px ">
                <a href="javascript:void(0)">MORE+</a>
              </div>
              <hr>

              <div class="school_more" style="margin-top: 30px;margin-bottom: 30px">
                <a href="javascript:void(0)">MORE+</a>
              </div>
            </div>
          </el-container>
        </el-container>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      animalArr: [{
        url: "/imgs_lx/1634887248.jpg",
        title: '怎样才能让狗狗信任自己',
        content: '获得狗狗的信任是人与狗之间任何关系中最重要的因素之一，通过使用一些技巧，比如当你第一次见到狗的时候保持冷静、温...',
        more: '+'
      },
        {
          url: "/imgs_lx/1618315376.png",
          title: '为什么猫越养越不亲人',
          content: '猫咪性格比较高冷、独特，在主人面前也会表现出高高在上的样子，更喜欢和主人以朋友的身份相处，小时候依赖主人，长大...',
          more: '+'
        },
        {
          url: "/imgs_lx/1616502079.jpg",
          title: '孔雀鱼催生办法',
          content: '有效催生孔雀鱼的办法有提高水温，使其温度上升至30度；及时换水，提供一个干净舒适的环境；除了适当添加食品、药品外...',
          more: '+'
        },
        {
          url: "/imgs_lx/1616500670.jpg",
          title: '兔子饲养方法的禁忌',
          content: '在饲养兔子时，要适当给兔子运动，同时注意饮食，另外不能让兔子受到惊吓。',
          more: '+'
        },
        {
          url: "/imgs_lx/1616498196.jpg",
          title: '柯基断尾和不断尾的区别',
          content: '柯基断尾和不断尾的区别，就在于有没有尾巴，对柯基的影响没有。除了工作犬考虑相关安全必要之外，日常生活中没必要给...',
          more: '+'
        },
        {
          url: "/imgs_lx/1615976929.jpg",
          title: '拉布拉多的优点',
          content: '拉布拉多有着性格温顺沉稳，对人友好，智商高等优点。拉布拉多性格温顺沉稳、阳光温暖，是“治愈的天使”；智商高，容...',
          more: '+'
        },
      ]
    }
  }
}
</script>

<style scoped>
* {
  padding: 0;
  font-size: 12px;
  font-family: "微软雅黑";
  color: #525252;
  background: #fff;
  margin: 0 auto;
}
.center{
  margin: 0 auto;
}
a {
  text-decoration: none;
  outline: none;
  transition: all 0.2s;
}

a:hover {
  text-decoration: none;
}

img {
  border: 0;
}

table {
  margin: auto;
}

div {
  display: block;
}

.common-layout {
  width: 1200px;
  height: auto;
  overflow: hidden;
  margin: auto;
  padding-bottom: 100px;
}

.title {
  width: 100%;
  text-align: center;
  font-size: 36px;
  color: #5a5a5a;
  font-weight: bold;
  background: url(../assets/imgs_lx/school_04.png) no-repeat center bottom;
  height: 90px;
  margin: 0 0 0 50px;
}

#app {
  width: 1500px;
  height: 1000px;
  overflow: hidden;
  background: url(../assets/imgs_lx/school1_18.jpg) no-repeat right bottom;
  margin-top: 60px;
}

.title_left {
  width: 170px;
  font-size: 24px;
  color: #5a5a5a;
  height: 50px;
  line-height: 50px;
  background: url(../assets/imgs_lx/school_08.png) no-repeat left;
  padding-left: 55px;
  border-bottom: 2px solid #bbbbbb;
}

.left_nav {
  height: 37px;
  line-height: 37px;
  font-size: 18px;
  color: #fff;
  text-align: center;
  width: 170px;
  background-color: #009eb6;
  margin: 10px auto;
  transition: all 0.2s;
}

#small_nav {
  height: 50px;
  background: url(../assets/imgs_lx/school_11.png) no-repeat left;
  margin-top:20px;
  font-size: 14px;
  color: #5a5a5a;
  line-height: 50px;
  position: absolute;
  right: 160px;
  padding-left: 40px ;
  padding-top: 19px;
}

.nav_a, .left_nav:hover {
  background-color: #fff;
  transition: all 0.5S;
  color: #009eb6;
}

.nav_a, .left_nav:visited {
  background-color: #fff !important;
  color: #009eb6 !important;
}

.el-card__body, .el-main {
  overflow: hidden;
  margin-top: 10px;
  position: relative !important;
  padding: 0;
}

.school_img {
  transition: all 0.4s ease-in;
}

.school_img:hover {
  transform: scale(1.1);
  -ms-transform: scale(1.2);
}

.school_ti {
  width: 321px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  position: absolute;
  bottom: -197px;
  background-color: rgba(0, 158, 182, 0.5);
  height: 247px;
  transition: all 0.5s ease-in-out;
}

.school_2 {
  width: 315px;
  margin: auto;
  font-size: 14px;
  color: #fff ;
  height: 55px;
  line-height: 55px;
  text-align: center;
  background-color: rgba(0, 158, 182, 0.01) ;
  transition: all 0.5s ease-in-out;
}

.school_3 {
  margin: auto;
  font-size: 14px;
  color: #ffffff;
  line-height: 30px;
  width: 285px;
  text-align: center;
  background-color: rgba(0, 158, 182, 0.01);
  transition: all 0.5s ease-in-out;

}

.school_4 {
  font-size: 24px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 28px;
  margin: 20px 0 0 140px;
  background-color: rgba(0, 158, 182, 0.01);
}

.school_ti:hover {
  position: absolute;
  bottom: 2px;
  transition: all 0.5s ease-in-out;
}

.school_more a {
  display: block;
  background: url(../assets/imgs_lx/school_37.png) no-repeat center bottom;
  width: 109px;
  height: 50px;
  margin: auto;
  line-height: 50px;
  text-align: center;
  font-size: 14px;
  color: #009eb6;
  cursor: pointer;
}
</style>